package com.zlx.mall.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author xiatian
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("`sc_user`")
public class ScUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;
    /** 用户状态：1启用，0禁用 */
    @TableField("`user_status`")
    private Integer userStatus;
    /** 姓名 */
    @TableField("`name`")
    private String name;
    /** 手机号(脱敏) */
    @TableField("`mobile_mask`")
    private String mobileMask;
    /** 手机号(加密) */
    @TableField("`mobile_encrypt`")
    private String mobileEncrypt;
    /** 手机号(md5),用于检索 */
    @TableField("`mobile_md5`")
    private String mobileMd5;
    /** 房号 */
    @TableField("`room_number`")
    private String roomNumber;
    /** 项目 */
    @TableField("`project`")
    private String project;
    /** 户型 */
    @TableField("`house_type`")
    private String houseType;
    /** 选货码 */
    @TableField("`select_code`")
    private String selectCode;
    /** 删除状态 {0-exist !0-deleted} */
    @TableField("`is_delete`")
    private Long isDelete;
    /** 注册时间 */
    @TableField("`create_timestamp`")
    private LocalDateTime createTimestamp;
    /** 修改时间 */
    @TableField("`update_timestamp`")
    private LocalDateTime updateTimestamp;
    /** 创建人id */
    @TableField("`create_operator_id`")
    private Long createOperatorId;
    /** 修改人id */
    @TableField("`modify_operator_id`")
    private Long modifyOperatorId;

    /** 主键 */
    public static final String ID = "id";
    /** 用户状态：1启用，0禁用 */
    public static final String USER_STATUS = "user_status";
    /** 姓名 */
    public static final String NAME = "name";
    /** 手机号(脱敏) */
    public static final String MOBILE_MASK = "mobile_mask";
    /** 手机号(加密) */
    public static final String MOBILE_ENCRYPT = "mobile_encrypt";
    /** 手机号(md5),用于检索 */
    public static final String MOBILE_MD5 = "mobile_md5";
    /** 房号 */
    public static final String ROOM_NUMBER = "room_number";
    /** 项目 */
    public static final String PROJECT = "project";
    /** 户型 */
    public static final String HOUSE_TYPE = "house_type";
    /** 选货码 */
    public static final String SELECT_CODE = "select_code";
    /** 删除状态 {0-exist !0-deleted} */
    public static final String IS_DELETE = "is_delete";
    /** 注册时间 */
    public static final String CREATE_TIMESTAMP = "create_timestamp";
    /** 修改时间 */
    public static final String UPDATE_TIMESTAMP = "update_timestamp";
    /** 创建人id */
    public static final String CREATE_OPERATOR_ID = "create_operator_id";
    /** 修改人id */
    public static final String MODIFY_OPERATOR_ID = "modify_operator_id";
}
